
<%@ page import="Buscar.Login"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'login.label', default: 'Login')}" />
<title><g:message code="default.list.label" args="[entityName]" />
</title>
</head>
<body>
	<div class="nav">
		<span class="menuButton"><a class="home"
			href="${createLink(uri: '/')}"><g:message
					code="default.home.label" /> </a> </span> <span class="menuButton"><g:link
				class="create" action="create">
				<g:message code="default.new.label" args="[entityName]" />
			</g:link> </span>
	</div>
	<div class="body">
		<h1>
			<g:message code="default.list.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<div class="list">
			<table>
				<thead>
					<tr>
						<g:sortableColumn property="id"
							title="${message(code: 'login.id.label', default: 'Id')}" />

						<th><g:message code="login.usuario.label" default="Usuario" />
						</th>

					</tr>
				</thead>
				<tbody>
					<g:each in="${loginInstanceList}" status="i" var="loginInstance">
						<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

							<td><g:link action="show" id="${loginInstance.id}">
									${fieldValue(bean: loginInstance, field: "id")}
								</g:link></td>

							<td>
								${fieldValue(bean: loginInstance, field: "usuario")}
							</td>

						</tr>
					</g:each>
				</tbody>
			</table>
		</div>
		<div class="paginateButtons">
			<g:paginate total="${loginInstanceTotal}" />
		</div>
		<div class="body">
			<g:form action="doLogin" method="post">
				<div class="dialog">
					</br> </br>

					<table class="userForm">
						<tr class='prop'>
							<td valign='top' style='text-align: left;' width='20%'><label
								for='email'>Email:</label></td>
							<td valign='top' style='text-align: left;' width='80%'><input
								id="email" type='text' name='email' value='${user?.email}' /></td>
						</tr>
						<tr class='prop'>
							<td valign='top' style='text-align: left;' width='20%'><label
								for='password'>Senha:</label></td>
							<td valign='top' style='text-align: left;' width='80%'><input
								id="password" type='password' name='password'
								value='${user?.password}' /></td>
						</tr>
					</table>
				</div>
				<div class="buttons">
					<span class="formButton"> <input type="submit" value="Login"></input>
					</span>
				</div>
				<g:form action="doLogout" method="post">
					<div class="buttons">
						<span class="formButton"> <input type="submit"
							value="Logout"></input> </span>
					</div>
				</g:form>
			</g:form>
			<g:message code="${flash.message}" args="${flash.args}"
				default="${flash.default}" />
		</div>
	</div>
</body>
</html>
